/**
 * 
 */
package com.wistech.search.solr.score;

import org.springframework.beans.factory.annotation.Autowired;

import com.wistech.search.solr.extend.service.ProductManager;

/**
 * 
 * 
 * @author Liuye
 * 
 */
public class ProductScoreProvider implements ScoreProvider {
	@Autowired
	private ProductManager productManager;

	@Override
	public void load() {
		productManager.loadProductScores();
	}

	@Override
	public float getScore(Long id) {
		return productManager.getProductScore(id);
	}

}
